package com.library.service;

import com.library.bean.Book;

import java.util.Date;
import java.util.List;

public interface BookService {

    /**
     * 通过多条件查询书本信息
     */
    List<Book> getBooks(Book book, Date beginDate, Date endDate);

    int addBook(Book book);

    int deleteBook(int bookId);

    Book getBookById(int bookId);

    int updateBook(Book book);

    int updateBookCover(int bookId,String bookCover);
}
